<div>
	<div style="width: 600px; float: left; margin-right: 20px;">
		<div id="mic_r_pub_new">
		<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>
		</div>
		<?php $this->widget('zii.widgets.CListView', array(
        'id'=>'micro_list',
        'dataProvider'=>$dataProvider,
        'itemView'=>'_view',
        'summaryText' => '',
        'afterAjaxUpdate'=>'function(id, data){    $(".view_content_span").each(function(i){$(this).bind("click",function(){           $("#mic_r_top").html($(this).parent().html()).fadeOut().fadeIn();});});}',
        'pager'=>array('class'=>'CLinkPager',
                       'maxButtonCount'=>5,
                       'header'=>'',
                       'prevPageLabel'=>'上一页',
                       'nextPageLabel'=>'下一页',
		),
        'template'=>'{sorter}{items}{pager}',
		)); ?>
	</div>
	<div id="mic_right"
		style="width: 280px; float: left; margin-top: 10px;">

		<div id="mic_r_bottom">
			<div id="yunshi">
				<div id="fod1">
					<div class="on" onclick="tabs_z('fod1','fod1list',0,'div','div')">白羊</div>
					<div onclick="tabs_z('fod1','fod1list',1,'div','div')">金牛</div>
					<div onclick="tabs_z('fod1','fod1list',2,'div','div')">双子</div>
					<div onclick="tabs_z('fod1','fod1list',3,'div','div')">巨蟹</div>
					<div onclick="tabs_z('fod1','fod1list',4,'div','div')">狮子</div>
					<div onclick="tabs_z('fod1','fod1list',5,'div','div')">处女</div>
					<div onclick="tabs_z('fod1','fod1list',6,'div','div')">天秤</div>
					<div onclick="tabs_z('fod1','fod1list',7,'div','div')">天蝎</div>
					<div onclick="tabs_z('fod1','fod1list',8,'div','div')">射手</div>
					<div onclick="tabs_z('fod1','fod1list',9,'div','div')">摩羯</div>
					<div onclick="tabs_z('fod1','fod1list',10,'div','div')">水瓶</div>
					<div onclick="tabs_z('fod1','fod1list',11,'div','div')">双鱼</div>
				</div>
				<div id="fod1list">
					<!-- 白羊 -->
				<?php if(isset($astors)):?>
				<?php foreach($astors as $key=>$value):?>
					<div class="<?php echo ($key==0)?"dis":"undis"?>"
						id="ob_<?php echo $key+1;?>">

						<h3>
						<?php echo $value->astor_name;?>
							座
							<?php echo date("m月d日",mktime(0,0,0,date("m"),date("d")+1,date("Y")));?>
							运势
						</h3>
						<p style="height: 200px; overflow: hidden;">
						<?php echo $value->forecast[0]->analysisContent;?>
						</p>
						<h4 class="color_blue">
							<span>·</span>速配Q友：<a
								href="<?php echo $this->createUrl("astor/infos",array("p"=>Yii::app()->params["astor_name_id"][$value->forecast[0]->supei][0]));?>"
								target="_blank"
								title="<?php echo Yii::app()->params["astor_name_id"][$value->forecast[0]->supei][1];?>座个性,查看<?php echo Yii::app()->params["astor_name_id"][$value->forecast[0]->supei][1];?>座爱情运，事业运，今日运，配对"><?php echo Yii::app()->params["astor_name_id"][$value->forecast[0]->supei][1];?>座</a>
						</h4>
						<h4 class="color_blue">
							<span>·</span>综合运势：
							<?php echo $value->forecast[0]->zonghe;?>
							%
						</h4>
					</div>
					<?php endforeach;?>
					<?php endif;?>
				</div>
			</div>
		</div>
		<div id="mic_r_top"></div>


	</div>
</div>

<script type="text/javascript">
<!--
    $("#mic_r_top").hide();
    $(".view_content_span").each(function(i){
        $(this).bind("click",function(){
            $("#mic_r_top").html($(this).parent().html()).fadeOut().fadeIn();
        });
    });
//-->
</script>
<script>
function tabs_z(o,o2,n,nm,cm){
    var m_n = document.getElementById(o).getElementsByTagName(nm);
    var c_n = document.getElementById(o2).getElementsByTagName(cm);
    for(i=0;i<m_n.length;i++){
        m_n[i].className=i==n?"on":"off";
        c_n[i].className=i==n?"dis":"undis";
    }
};

</script>
<!--[if !IE]>|xGv00|91736c1b9d94ef26eb82e60eaca14063<![endif]-->
